package com.yunnuo.monitor.druid.controller;

import com.yunnuo.system.comm.controller.BaseController;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @api {title} druid系统监控comtroller
 * @apiName DruidController
 * @apiGroup System-DruidController
 * @apiDescription Created by 魏洪福(15064000912@163.com) on  2018/6/1.
 */
@Controller
@RequestMapping("/monitor/data")
public class DruidController extends BaseController
{
    private String prefix = "/monitor/druid";

    @RequiresPermissions("monitor:data:view")
    @GetMapping()
    public String index()
    {
        return "redirect:" + prefix + "/index";
    }
}
